﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true" CodeBehind="Expenses.aspx.cs" Inherits="School.Pages.Accounting.Expenses" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h2><a href="ExpenseEditor.aspx">تعريف إيراد جديد</a></h2>
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    Width="100%" CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
    PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
<AlternatingRowStyle CssClass="GridItemAltername"></AlternatingRowStyle>
        <Columns>
            <asp:BoundField DataField="Code" HeaderText="كود" />
            <asp:BoundField DataField="Name" HeaderText="اسم" SortExpression="Name" />
            <asp:BoundField DataField="Detail" HeaderText="بيان" />
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="ExpenseDelete.aspx?Id={0}" Text="حذف" 
                HeaderStyle-CssClass="delete_link" >
<HeaderStyle CssClass="delete_link"></HeaderStyle>
            </asp:HyperLinkField>
        </Columns>

<FooterStyle CssClass="GridHeaderFooter"></FooterStyle>

<HeaderStyle CssClass="GridHeaderFooter"></HeaderStyle>

<PagerStyle CssClass="GridPager"></PagerStyle>
    </asp:GridView>
<script type="text/jscript">
    $(document).ready(function () {
        $('a[href^="ExpenseDelete.aspx"]').click(function () {
            return confirm('هل أنت متأكد');
        })
    });
</script>
</asp:Content>
